<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
</head>
<body>
<span th:if="${#fields.hasErrors('${userBean.*}')}"><span th:errors="${userBean.*}"></span></span>
<div><span th:text="${message}"></span></div>
<form action="init" th:object="${UserBean}" method="post">
<table>
<tr><td>登录界面</td></tr>
    <tr>
       <td>用户名：<input name="UserId" type="text"/></td>
    </tr>
      <tr>
       <td>密码:<input name="PassWord" type="password"/></td>
       </tr>
   </table>
 <button type="submit" name="dl">登 陆</button>
 <button type="submit" name="zc">注 册</button>
</form>
</body>
</html>